﻿<UserControl
    x:Class="MvvmFx.Samples.HowTos.ViewModelHelper.Views.ItemsControlSampleView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mvvm="clr-namespace:MvvmFx.Common.ViewModels;assembly=MvvmFx.Common">

    <!-- root container -->
    <Grid
        Margin="10">

        <!-- row/column definitions -->
        <Grid.RowDefinitions>
            <RowDefinition
                Height="Auto" />
            <RowDefinition
                Height="*" />
        </Grid.RowDefinitions>

        <!-- items -->
        <TextBlock
            Text="Sample Data:"
            FontWeight="Bold"
            TextDecorations="Underline" />
        <ScrollViewer
            Grid.Row="1">
            <ItemsControl
                mvvm:ViewModelHelper.ItemsSource="{Binding Path=Samples}">
            </ItemsControl>
        </ScrollViewer>

    </Grid>

</UserControl>
